package com.example.socialmediaplatform.model;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NotificationRepository extends JpaRepository<Notification, Long> {
    List<Notification> findByToUserOrderByCreatedAtDesc(String toUser);
    Notification findByIdAndToUser(Long id, String toUser);
} 
